package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ReporteCantidad extends javax.swing.JFrame {
	private JButton jBAceptarreportecantidad;
	private JTable jTcantidades;
	private JPanel jPanel1;
	private JLabel jLabel1;

	/**
	* Auto-generated main method to display this JFrame
	*/


	public ReporteCantidad() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setBackground(new java.awt.Color(0,0,0));
			getContentPane().setLayout(null);
			{
				jBAceptarreportecantidad = new JButton();
				getContentPane().add(jBAceptarreportecantidad, "Center");
				jBAceptarreportecantidad.setIcon(new ImageIcon(getClass().getClassLoader().getResource("Imagenes/aceptarblack.jpg")));
				jBAceptarreportecantidad.setOpaque(false);
				jBAceptarreportecantidad.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
				jBAceptarreportecantidad.setBounds(242, 125, 49, 45);
				jBAceptarreportecantidad.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						System.out.println("jBAceptarreportecantidad.actionPerformed, event="+evt);
						//TODO add your code for jBAceptarreportecantidad.actionPerformed
						MenuReportes me=new MenuReportes();
						me.setVisible(true);
						dispose();
					}
				});
			}
			{
				TableModel jTVentaProductosModel = 
					new DefaultTableModel(
							new String[][] { { "One", "Two" }, { "Three", "Four" } },
							new String[] { "Column 1", "Column 2" });
				jTcantidades = new JTable();
				getContentPane().add(jTcantidades, "Center");
				jTcantidades.setModel(jTVentaProductosModel);
				jTcantidades.setBounds(14, 54, 277, 43);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1, "North");
				jLabel1.setText("Reporte de Cantidades Existentes ");
				jLabel1.setFont(new java.awt.Font("Purisa",1,14));
				jLabel1.setForeground(new java.awt.Color(255,255,255));
				jLabel1.setBounds(19, 1, 309, 54);
			}
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(0, 6, 312, 168);
				jPanel1.setLayout(null);
				jPanel1.setBackground(new java.awt.Color(0,0,0));
			}
			pack();
			this.setSize(315, 207);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
